package cn.itsource.basic.base.mapper;

import cn.itsource.basic.base.query.BaseQuery;
import java.util.List;


public interface BaseMapper<T> {
    //查询所有
    List<T> selectAll();
    //基于id查询
    T selectByid(Long id);
    //增加
    void save(T t);
    //修改
    void update(T t);
    //删除
    void delect(Long id );
    //分页查询+条件查询
    List<T> selectByPage(BaseQuery query);
    //条数
    Long count(BaseQuery query);
    //批量删除
    void batchDeletedelect(List<Long> ids);
}
